package org.example.service.impl;

import org.example.dto.User;
import org.example.mapper.UserMapper;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceimpl {
    private final UserMapper userMapper;
    public UserServiceimpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }
    public List<User> getAllUsers(){
      return   userMapper.findAll();
    }
}
